const Router = require("koa-router");
const user = require("./user");
const goods = require("./goods");
const shopping = require("./shopping");
const orders = require("./orders");
// 装载所有子路由
let router = new Router();
router.use("/user", user.routes(), user.allowedMethods());
router.use("/goods", goods.routes(), goods.allowedMethods());
router.use("/shopping", shopping.routes(), shopping.allowedMethods());
router.use("/orders", orders.routes(), orders.allowedMethods());

module.exports = router;
